<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ElementUI入门案例</title>
    <!-- 引入ElementUI样式 -->
    <link rel="stylesheet" href="element-ui/index.css">
</head>
<body>
<div id="app">
    <el-button type="success" @click="visible = true">按钮</el-button>
    <el-dialog :visible.sync="visible" title="我是标题">
        <p>华丽丽的内容</p>
    </el-dialog>
</div>

<!-- 先引入vue -->
<script src="js/vue.js"></script>
<!-- 再引入ElementUI组件库 -->
<script src="element-ui/index.js"></script>
<script>
    new Vue({
        el: '#app',
        data: {
            visible: false
        }
    })
</script>
</body>
</html>